package com.gzsxy.esjy.service.base.dto.request;

import com.gzsxy.esjy.service.base.dto.response.CartRsp;
import com.gzsxy.esjy.service.base.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author xiaolong
 * @version 1.0
 * @description: 前台订单请求实体
 * @date 2022/2/18 19:50
 */
@Data
@ApiModel
public class ApiOrderRequest {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "订单编号")
    private String orderCode;

    @ApiModelProperty(value = "总价")
    private Double sumPrice;

    @ApiModelProperty(value = "状态-0待支付\\1待发货\\2已发货\\3待评论\\4已完成\\5已关闭 ")
    private Integer status;

    /**
     * 1.在线支付 2.货到付款
     */
    @ApiModelProperty(value = "支付方式")
    private Integer paytype;
    /**
     * 1.微信 2.银行卡 3.钱包 4.支付宝
     */
    @ApiModelProperty(value = "支付方式")
    private Integer paytype2;

    @ApiModelProperty(value = "前台发起订单的用户id")
    private String userId;

    @ApiModelProperty(value = "收货地址id）")
    private String resourceId;

    @ApiModelProperty(value = "下单选中的购物车商品")
    private List<CartRsp> cartList;
}
